$OpenBSD: patch-applications_codec_convert_c,v 1.2 2016/10/26 18:16:49 jca Exp $
--- applications/codec/convert.c.orig	Fri Mar 28 09:20:25 2014
+++ applications/codec/convert.c	Tue Oct 18 02:55:44 2016
@@ -184,7 +184,7 @@ static int tga_readheader(FILE *fp, unsigned int *bits
 	return 1;
 }
 
-#ifdef OPJ_BIG_ENDIAN
+#if defined(OPJ_BIG_ENDIAN) && !defined(swap16)
 
 static inline int16_t swap16(int16_t x)
 {
